function layer()
	{

		window.location="registration.php";
		
	}

function closelayer()

	{
	
	
	
	document.getElementById('open_layer').style.display='none';
	
	
	
	}



var xmlHttp_find;

var testresults
function valid()
	
	{
	
	if(document.form1.rss.value=='')
	
	{
	alert("Plase Choose One Topic!");
	return false;
	}
	
	if(document.form1.username.value.search(/\S/)==-1)
	
	{
	
	alert("Please Enter Your UserName!");
	
	document.form1.username.focus();
	
	return false;
	
	}
	/*var str=document.validation.emailcheck.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	*/	
	var str=document.form1.email.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str))
	testresults=true
	else
	{
	alert("Please Input A Valid Email Address!")
	document.form1.email.focus();
	return false;
	}
	
	if(document.form1.message.value=='')
	{
	alert("Please Enter Your FeedBack!");
	return false;
	}
	var str=document.form1.message.value
	var filter=/[?\>\<\\]/;
	if (filter.test(str))
	{
	alert("Please Dont Use ?,<,> symbol!")
	document.form1.message.focus();
	
	return false;
	}
	return true;
	}
function changefeed(id)

	{
	
	window.location="feedback.php?id="+id;
	
	}


